﻿namespace UserManagement.Controllers
{
    using Common.Base;
    using UserManagement.Views;

    public class LoginController : BaseController
    {
        private UserManagementController subsystem;

        public LoginController(UserManagementController s)
        {
            this.subsystem = s;
        }

        public override void Initialize()
        {
            this.currentView = new LoginPage(this);
            this.ChangeView(this.currentView);
        }

        public void GoToRegistration()
        {
            this.subsystem.ShowRegistration();
        }
    }
}